package com.pms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pms.dao.SalerMapper;
import com.pms.domain.Saler;
import com.pms.service.SalerService;

/** 
* @ClassName: SalerServiceImpl 
* @Description:  
* @author ZZW
* @date 2016年12月2日 下午5:56:15 
*  
*/
@Service
public class SalerServiceImpl implements SalerService {
	
	@Autowired
	SalerMapper salerMapper;

	@Override
	public void insertSaler(Saler saler) {
		salerMapper.insertSaler(saler);
	}

	@Override
	public Saler selectByCardId(String id) {
		return salerMapper.selectByCardId(id);
	}

	@Override
	public void updateByCardId(Saler saler) {
		salerMapper.updateByCardId(saler);
	}

	@Override
	public List<Saler> getAll() {
		return salerMapper.getAll();
	}

	@Override
	public void deleteSalerByCardId(String id) {
		salerMapper.deleteSalerByCardId(id);
	}

	

}
